﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ABC.Business.Models
{
    public static class IconsModel
    {
        public static Dictionary<string, string> MimeTypes { get; set; }

        public static string[] ImageExt { get; set; }

        static IconsModel()
        {
            ImageExt = new string[4];
            ImageExt[0] = ".png";
            ImageExt[1] = ".jpg";
            ImageExt[2] = ".jpeg";
            ImageExt[3] = ".gif";
           MimeTypes = new Dictionary<string, string>
                           {
                               {".cpp", "text/x-c"},
                               {".css", "text/css"},
                               {".html", "text/html"},
                               {".js", "text/javascript"},
                               {".xls", "application/vnd.ms-excel"},
                               {".xlm", "application/vnd.ms-excel"},
                               {".xll", "application/vnd.ms-excel"},
                               {".xlc", "application/vnd.ms-excel"},
                               {".xlb", "application/vnd.ms-excel"},
                               {".xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},
                               {".ppt", "application/vnd.ms-powerpoint"},
                               {".pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation"},
                               {".doc", "application/msword"},
                               {".docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"},
                               {".pdf", "application/pdf"},
                               {".rar", "application/x-rar-compressed"},
                               {".tar", "application/x-tar"},
                               {".swf", "application/x-shockwave-flash"},
                               {".txt", "text/plain"},
                               {".pl", "text/plain"},
                               {".zip", "application/zip"},
                               {".rtf", "application/rtf"},
                               {".py", "text/x-script.phyton"},
                               {".sh", "application/x-sh"},
                               {".xml", "text/xml"},
                               {".mp3", "audio/mpeg3"},
                               {".wav", "audio/wav"},
                               {".ogg", "audio/ogg"},
                               {".wma", "audio/x-ms-wma"},
                               {".avi", "video/avi"},
                               {".mp4", "video/mp4"},
                               {".mpeg", "video/mpeg"},
                               {".mkv", "video/mkv"},
                               {".mov", "video/quicktime"},
                               {".webm", "video/webm"},
                               {".wave", "audio/vnd.wave"}
                           };
        }
    }
}
